<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$mname}</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title>jQuery WeUI</title>

    <link rel="stylesheet" href="__PUBLIC__/static/jquery-weui/lib/weui.min.css">
    <link rel="stylesheet" href="__PUBLIC__/static/jquery-weui/css/jquery-weui.css">

    <link rel="stylesheet" href="__PUBLIC__/static/bootstrap/css/bootstrap.min.css">

    <script src="__PUBLIC__/static/jquery-weui/lib/jquery-2.1.4.js"></script>
    <script src="__PUBLIC__/static/jquery-weui/js/jquery-weui.js"></script>

    <script src="__PUBLIC__/static/jquery-weui/js/swiper.js"></script>
    <style>

        .navtab {
            display: -webkit-flex;
            display: flex;
            border: 2px solid #CCCCCC;
        }

        .navtab .item {
            -webkit-flex: 1;
            flex: 1;
            line-height: 45px;
            text-align: center;
            color: #333;
        }

        .navtab .item.active {
            color: #36CA71;
            border-bottom: 2px solid #36CA71;
        }
    </style>
    <style>
        .movie-name {
            font-weight: bolder;
        }

        .movie-summary {
            color: #ccc;
        }

        .movie-description {
            color: #ccc;
        }
    </style>
</head>
<body>
<div class="navtab">

    <a href="{:U('index',['time'=>date('md'),'id'=>$_GET['id']])}"
       class="item <?php echo ($_GET['time']==date('md'))?'active':''; ?>" style="text-decoration:none;">
        今天 {:date('m-d',time())}
    </a>
    <a href="{:U('index',['time'=>date('md',strtotime('+1 days')),'id'=>$_GET['id']])}"
       class="item <?php echo ($_GET['time']==date('md',strtotime('+1 days')))?'active':''; ?>" style="text-decoration:none;">
        明天 {:date('m-d',(time()+3600*24*1))}
    </a>
    <a href="{:U('index',['time'=>date('md',strtotime('+2 days')),'id'=>$_GET['id']])}"
       class="item <?php echo ($_GET['time']==date('md',strtotime('+2 days')))?'active':''; ?>" style="text-decoration:none;">
        后天 {:date('m-d',(time()+3600*24*2))}
    </a>
    <a href="{:U('index',['time'=>date('md',strtotime('+3 days')),'id'=>$_GET['id']])}"
       class="item <?php echo ($_GET['time']==date('md',strtotime('+3 days')))?'active':''; ?>" style="text-decoration:none;">
        本周{:date('N', (time()+3600*24*3))} {:date('m-d',(time()+3600*24*3))}
    </a>
</div>
<div class="weui_cell">
    <div class="weui_cell_bd weui_cell_primary">
        <foreach name="list" item="val">
        <a href="{:U('Movie/movieinfo',['uid'=>$val['uid'],'mid'=>$val['mid']])}"><p class="movie-name">电影城名称 {$val['uname']}</p></a>
        <p class="movie-summary">电影城地址 {$val['uad']}</p>
        <p class="movie-description">最近播放时间 {:date('H点i分',$val['stime'])}</p>
        </foreach>
    </div>
</div>
<hr/>
<script>
//    $('.item').click(function(){
//        $('.item').removeClass('active');
//        $(this).addClass('active');
//    });
</script>
</body>
</html>